extends ../layout

block content
  .container
    .row
      .col-sm-6.col-sm-offset-3
        include ../includes/message
        h2.text-center: i.fa.fa-key
          |  填写验证码
        hr

        form#request_form(method="post")
          .form-group
            //- label 账号
            input.form-control.input-lg.text-center(type="text", name="code", placeholder="请输入获得的制作码", autocomplete="off", minlength=6, required)
          button.btn.btn-lg.btn-block.btn-warning(type="submit") 提 交
          br
          br
          p.text-right
            | 还没有制作码?&nbsp;
            a(title="进店询问详情", href='http://shop72514689.taobao.com/?spm=2013.1.1000126.d21.Rt3XAQ') 咨询


append scripts
  script(type="text/javascript", src="//cdn.staticfile.org/jquery-validate/1.12.0/jquery.validate.min.js")
  script.
    $("#request_form").validate({
      //- debug: true,
      errorClass: "input-error text-danger",
      errorElement: "i",
      rules: {
        code: {
          required: true,
          minlength: 6,
          maxlength: 6
        }
      },
      messages: {
        code: {
          required: "请输入制作码！",
          minlength: "请输入6位制作码",
          maxlength: "请输入6位制作码"
        }
      }
    });